Optimal. Leaf size=204 \[ -\frac {(-1)^{3/4} a^{3/2} (12 A-11 i B) \tan ^{-1}\left (\frac {(-1)^{3/4} \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{4 d}-\frac {(2+2 i) a^{3/2} (A-i B) \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}+\frac {a (5 B+4 i A) \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{4 d}+\frac {i a B \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.70, antiderivative size = 204, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 9, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.237, Rules used = {3594, 3597, 3601, 3544, 205, 3599, 63, 217, 203} \[ -\frac {(-1)^{3/4} a^{3/2} (12 A-11 i B) \tan ^{-1}\left (\frac {(-1)^{3/4} \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{4 d}-\frac {(2+2 i) a^{3/2} (A-i B) \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}+\frac {a (5 B+4 i A) \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{4 d}+\frac {i a B \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 203
Rule 205
Rule 217
Rule 3544
Rule 3594
Rule 3597
Rule 3599
Rule 3601
Rubi steps
\begin {align*} \int \sqrt {\tan (c+d x)} (a+i a \tan (c+d x))^{3/2} (A+B \tan (c+d x)) \, dx &=\frac {i a B \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{2 d}+\frac {1}{2} \int \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)} \left (\frac {1}{2} a (4 A-3 i B)+\frac {1}{2} a (4 i A+5 B) \tan (c+d x)\right ) \, dx\\ &=\frac {a (4 i A+5 B) \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{4 d}+\frac {i a B \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{2 d}+\frac {\int \frac {\sqrt {a+i a \tan (c+d x)} \left (-\frac {1}{4} a^2 (4 i A+5 B)+\frac {1}{4} a^2 (12 A-11 i B) \tan (c+d x)\right )}{\sqrt {\tan (c+d x)}} \, dx}{2 a}\\ &=\frac {a (4 i A+5 B) \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{4 d}+\frac {i a B \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{2 d}-(2 a (i A+B)) \int \frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {\tan (c+d x)}} \, dx+\frac {1}{8} (12 i A+11 B) \int \frac {(a-i a \tan (c+d x)) \sqrt {a+i a \tan (c+d x)}}{\sqrt {\tan (c+d x)}} \, dx\\ &=\frac {a (4 i A+5 B) \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{4 d}+\frac {i a B \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{2 d}-\frac {\left (4 a^3 (A-i B)\right ) \operatorname {Subst}\left (\int \frac {1}{-i a-2 a^2 x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}+\frac {\left (a^2 (12 i A+11 B)\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {x} \sqrt {a+i a x}} \, dx,x,\tan (c+d x)\right )}{8 d}\\ &=-\frac {(2+2 i) a^{3/2} (A-i B) \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}+\frac {a (4 i A+5 B) \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{4 d}+\frac {i a B \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{2 d}+\frac {\left (a^2 (12 i A+11 B)\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {a+i a x^2}} \, dx,x,\sqrt {\tan (c+d x)}\right )}{4 d}\\ &=-\frac {(2+2 i) a^{3/2} (A-i B) \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}+\frac {a (4 i A+5 B) \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{4 d}+\frac {i a B \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{2 d}+\frac {\left (a^2 (12 i A+11 B)\right ) \operatorname {Subst}\left (\int \frac {1}{1-i a x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{4 d}\\ &=-\frac {\sqrt [4]{-1} a^{3/2} (12 i A+11 B) \tan ^{-1}\left (\frac {(-1)^{3/4} \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{4 d}-\frac {(2+2 i) a^{3/2} (A-i B) \tanh ^{-1}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}+\frac {a (4 i A+5 B) \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{4 d}+\frac {i a B \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 6.56, size = 389, normalized size = 1.91 \[ \frac {(a+i a \tan (c+d x))^{3/2} (A+B \tan (c+d x)) \left (\frac {\sqrt {2} e^{-i (c+d x)} \sqrt {-\frac {i \left (-1+e^{2 i (c+d x)}\right )}{1+e^{2 i (c+d x)}}} \left (\sqrt {2} (11 B+12 i A) \left (\log \left (-2 \sqrt {2} e^{i (c+d x)} \sqrt {-1+e^{2 i (c+d x)}}-3 e^{2 i (c+d x)}+1\right )-\log \left (2 \sqrt {2} e^{i (c+d x)} \sqrt {-1+e^{2 i (c+d x)}}-3 e^{2 i (c+d x)}+1\right )\right )-64 i (A-i B) \log \left (\sqrt {-1+e^{2 i (c+d x)}}+e^{i (c+d x)}\right )\right )}{\sqrt {-1+e^{2 i (c+d x)}} \sqrt {\frac {e^{i (c+d x)}}{1+e^{2 i (c+d x)}}}}+8 (\sin (c)+i \cos (c)) \sqrt {\tan (c+d x)} \sqrt {\sec (c+d x)} (\cos (d x)-i \sin (d x)) (4 A+2 B \tan (c+d x)-5 i B)\right )}{32 d \sec ^{\frac {5}{2}}(c+d x) (A \cos (c+d x)+B \sin (c+d x))} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.77, size = 812, normalized size = 3.98 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.41, size = 565, normalized size = 2.77 \[ -\frac {\left (\sqrt {\tan }\left (d x +c \right )\right ) \sqrt {a \left (1+i \tan \left (d x +c \right )\right )}\, a \left (-4 i B \sqrt {i a}\, \sqrt {-i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \tan \left (d x +c \right )+4 i A \sqrt {-i a}\, \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) a -8 i A \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}\, \sqrt {-i a}-4 i \sqrt {i a}\, \sqrt {2}\, \ln \left (-\frac {-2 \sqrt {2}\, \sqrt {-i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}+i a -3 a \tan \left (d x +c \right )}{\tan \left (d x +c \right )+i}\right ) a +5 B \sqrt {-i a}\, \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) a -10 B \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}\, \sqrt {-i a}+8 i \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) \sqrt {-i a}\, a -4 \sqrt {2}\, \ln \left (-\frac {-2 \sqrt {2}\, \sqrt {-i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}+i a -3 a \tan \left (d x +c \right )}{\tan \left (d x +c \right )+i}\right ) a \sqrt {i a}-8 \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) \sqrt {-i a}\, a \right )}{8 d \sqrt {i a}\, \sqrt {-i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (B \tan \left (d x + c\right ) + A\right )} {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \sqrt {\tan \left (d x + c\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \sqrt {\mathrm {tan}\left (c+d\,x\right )}\,\left (A+B\,\mathrm {tan}\left (c+d\,x\right )\right )\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{3/2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{\frac {3}{2}} \left (A + B \tan {\left (c + d x \right )}\right ) \sqrt {\tan {\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________